<?php
/**
 * Description of SystemInterface
 *
 * @author josema
 */
class SystemInterface {

    /**
     * Call the action receibed as first parameter.
     * The actions are called as action_$name.
     *
     * @param string $action_name
     */
    public function runService($action_name){
        $method_name = 'service_'.$action_name;

        if (method_exists($this, $method_name))
            return $this->{$method_name}();
    }
}
?>
